Repository navigation
Pin the builder's messages and the version length boundary - #44
Merged
Merged
Conversation
The builder's "is required" messages were never asserted, and nothing showed that a version of exactly MAX_TAG_LENGTH characters is accepted, or that surrounding whitespace is trimmed before it is counted and sent. installId already has a test like this; version now has its sibling. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
|
Self-review rubric (CI anchor:
One observation: Summary: a test-only PR with green CI on all three legs and no protected paths touched. It is eligible for merge. This review comment was drafted during a Gardener session (https://github.com/Stephenson-Software/gardener). drafted by Claude on behalf of Daniel Stephenson |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stage B unit-test expansion. Characterization tests are added for the
Builderpreconditions; no production code is changed.Summary
builder_namesWhatIsMissingInItsMessage: thebaseUrl is required,application is requiredandversion is requiredmessages are asserted, along with the order the arguments are checked in (all three missing →baseUrl is required). Before this, only the exception type was checked.builder_rejectsAnOverlongVersionAndAcceptsOneAtTheLimit: a sibling ofbuilder_rejectsAnOverlongInstallIdAndAcceptsOneAtTheLimit. It asserts theversion is longer than 255 charactersmessage, that a version of exactlyMAX_TAG_LENGTHcharacters is accepted, and that surrounding whitespace is trimmed before the version is counted and before it is sent as theversiontag. The upper side of the boundary was already covered; the at-limit and trimmed sides were not.Test plan
mvn -B verifyrun locally on JDK 21: 109 tests, 0 failures, 0 errors, 0 skipped. Both new tests appear in the surefire report.Skipped issues
Every open issue (#13, #15, #27, #31, #39, #40, #42) was left alone. Each one changes the wire format, the opt-out contract or the README "Opting out" wording, so each is waiting on a maintainer decision.
No tracking issue. The gap was found while comparing
TraceClient.javawithTraceClientTest.javaduring triage.This PR description was drafted during a Gardener session (https://github.com/Stephenson-Software/gardener).
🤖 Generated with Claude Code
drafted by Claude on behalf of Daniel Stephenson